<?php
/**
 * @version		0.2.0 joomla zmluvy $
 * @package		com_zjmluvy
 * @copyright	Copyright © 2011 - All rights reserved.
 * @license		GNU/GPL
 * @author    AdrianKo		
 * @website   http://code.google.com/p/joomla-zmluvy
 *
 *
 *1.3.2012
 */

// no direct access
defined('_JEXEC') or die('Restricted access');

class nastaveni extends JTable
{
	/**
	 * Unique Key
	 * @var int
	 */
	var $id					= 1;
	/** @var string */
	var $intro 		= null;
  var $kontakty = "1";
  var $kontakty_link = "1";
  var $podpis = "";
  var $podpis_funkcia = "";
  var $stat = "Slovensko";
  var $mena = "€";
  var $dph = "1";
  var $subory = "1";
  var $subory_rezerva = "1";
  var $datum_text = "nezadané";
  var $datum_format = "j.n.Y"; //
  var $crz = null;
  var $crz_link = "1";
  var $crz_web = null;
  var $obj_dat_plnenia = "1";
  var $fak_int_cislo = "1";
  var $fak_dat_platnosti = "1";
  var $fak_dat_uhrady = "1";
  var $zml_dat_podpisu = "1";
  var $zml_dat_platnosti = "1";
  var $zml_dat_ucinnosti = "1";
  var $partner_spis_znacka = "1";
  var $partner_logo = "1";
  var $partner_dic = null;
  var $partner_pocet_obj = "1";
  var $ver = "0.1.7";
  var $debug = null;

	function nastaveni(& $db) {
		parent::__construct('#__jzmluvy_nastaveni', 'id', $db);
	}
  
	function check()
	{
	 if($this->partner_pocet_obj <= 0) {
			$this->_error = JText::_( 'pa_CHYBA_POC_OBJ' );
	    JError::raiseWarning('SOME_ERROR_CODE', $this->_error );
      return false;
		}
 		return true;
	}
    
}
?>